import request from '@/utils/request'

// 查询主体简介列表
export function listMainBrief(query) {
  return request({
    url: '/busi/mainBrief/list',
    method: 'get',
    params: query
  })
}

// 查询主体简介详细
export function getMainBrief(id) {
  return request({
    url: '/busi/mainBrief/' + id,
    method: 'get'
  })
}

// 新增主体简介
export function addMainBrief(data) {
  return request({
    url: '/busi/mainBrief',
    method: 'post',
    data: data
  })
}

// 修改主体简介
export function updateMainBrief(data) {
  return request({
    url: '/busi/mainBrief',
    method: 'put',
    data: data
  })
}

// 删除主体简介
export function delMainBrief(id) {
  return request({
    url: '/busi/mainBrief/' + id,
    method: 'delete'
  })
}

// 导出主体简介
export function exportMainBrief(query) {
  return request({
    url: '/busi/mainBrief/export',
    method: 'get',
    params: query
  })
}